/* ==========================================================
   BOILERPLATE CSS – MOBILE FIRST / FLEXBOX
   Version ULTRA – Design System Light
   ========================================================== */
.bodoni-moda-regular {
  font-family: "Bodoni Moda", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}
.bebas-regular {
  font-family: "Bebas Neue Pro", sans-serif;
  font-weight: 400;
  font-style: normal;
}
.bebas-bold{
font-family: "bebas-neue-pro", sans-serif;
font-weight: 600;
font-style: normal;
}
.bebas-courant {
font-family: "bebas-neue-pro-semiexpanded", sans-serif;
font-weight: 500;
font-style: normal;
}


/* ==========================================================
   01. VARIABLES GLOBALES (DESIGN TOKENS)
   ========================================================== */

:root {
  /* ----- Couleurs branding ----- */
  --color-primary: #1F2A44;
  --color-secondary: #C89B3C;
  --color-accent: #D94F4F;
  --color-neutral: #F2F2F2;
  --color-muted: #8A8A8A;

  /* ----- Couleurs fonctionnelles ----- */
  --color-success: #3FA76A;
  --color-warning: #E6A700;
  --color-error: #D94F4F;
  --color-info: #3A7BD5;

  --color-white: #FFFFFF;
  --color-black: #000000;

  /* ----- Typographies ----- */
  --font-heading: "bebas-neue-pro", sans-serif;
  --font-heading2: "Bodoni Moda", serif;
  --font-body: "bebas-neue-pro", sans-serif;

  /* ----- Typo ----- */
  --font-size-base: 1rem;
  --line-height-base: 1.6;

  /* ----- Espacements ----- */
  --space-1: clamp(0.5rem, 1vw, 0.75rem);
  --space-2: clamp(0.75rem, 2vw, 1.25rem);
  --space-3: clamp(1rem, 3vw, 2rem);
  --space-4: clamp(2rem, 5vw, 4rem);
  --space-5: clamp(3rem, 8vw, 6rem);

  --container-max: 1200px;
  --transition-base: 0.3s ease;
}

/* ==========================================================
   02. RESET & BASE
   ========================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-black);
  background-color: var(--color-white);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ==========================================================
   03. ACCESSIBILITÉ
   ========================================================== */

:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================
   04. TYPOGRAPHIE
   ========================================================== */

.text-eyebrow { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 0.1em; font-size: clamp(0.75rem, 1.5vw, 0.875rem); color: var(--color-muted); }

h1 { font-family: var(--font-heading); font-size: clamp(2.5rem, 6vw, 4.25rem); }
h2 { font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-family: var(--font-heading); font-size: clamp(1.5rem, 4vw, 2rem); }
h4 { font-family: var(--font-heading); font-size: clamp(1.25rem, 3vw, 1.5rem); }

.subtitle { font-family: var(--font-heading2); font-size: clamp(1.125rem, 3vw, 1.25rem); color: var(--color-muted); }
p { max-width: 65ch; margin-bottom: var(--space-2); }

/* ==========================================================
   05. LAYOUT & GRILLE
   ========================================================== */

.container { max-width: var(--container-max); margin-inline: auto; padding-inline: var(--space-3); }
.section { padding-block: var(--space-4); }

.row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.col { flex: 1 1 100%; }
@media (min-width:768px) { .col-6 { flex: 0 0 50%; } .col-4 { flex: 0 0 33.333%; } }

/* ==========================================================
   06. NAVIGATION
   ========================================================== */

/* =========================
   HEADER FIXE & RETRACTABLE
   ========================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-white);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  .header {
    background-color: var(--color-black);
  }
}

/* Header rétractable */
.header--hidden {
  transform: translateY(-100%);
}

/* =========================
   NAVBAR DESKTOP
   ========================= */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

/* Logo */
.nav-logo-img {
  width: 90px; /* réduit de moitié */
  height: auto;
  transition: filter 0.3s ease;
    filter: brightness(0);
}

/* Inversion en dark mode */
@media (prefers-color-scheme: dark) {
  .nav-logo-img {
    filter: brightness(1) 
  }
}


/* Liens desktop */
.nav-links {
  display: flex;
  gap: 2rem;
  margin-left: auto;
  align-items: center;
}

.nav-link {
  font-family: var(--font-heading);
  color: var(--color-black);
  text-decoration: none;
}

@media (prefers-color-scheme: dark) {
  .nav-link {
    color: var(--color-white);
  }
}

/* =========================
   MENU BURGER MOBILE
   ========================= */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 22px;
  position: relative;
  order: 2; /* placé à droite */
}

/* Hamburger icon */
.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--color-black);
  border-radius: 2px;
  position: absolute;
  transition: all 0.3s ease;

}
/* Dark mode -> blanc */
@media (prefers-color-scheme: dark) {
  .menu-icon,
  .menu-icon::before,
  .menu-icon::after {
   background-color: #FFFFFF !important;
  }

  .menu-toggle.active .menu-icon {
  background-color: transparent !important;;
}
}

.menu-icon {
  top: 50%;
  transform: translateY(-50%);
}

.menu-icon::before {
  content: '';
  top: -8px;
}

.menu-icon::after {
  content: '';
  top: 8px;
}

/* Hamburger actif -> croix */
.menu-toggle.active .menu-icon {
  background-color: transparent;
}

.menu-toggle.active .menu-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.menu-toggle.active .menu-icon::after {
  transform: rotate(-45deg);
  top: 0;
}

/* =========================
   MOBILE MENU
   ========================= */
.mobile-menu {
  display: none; /* Masqué par défaut */
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  background-color: var(--color-white);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 999;
 
  /* Transition pour ouverture/fermeture */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
  opacity: 0;
  transform: translateY(-10px);
}

/* Menu visible seulement quand aria-hidden="false" */
.mobile-menu[aria-hidden="false"] {
  display: block;
  max-height: 500px; /* suffisant pour tout le menu */
  opacity: 1;
  transform: translateY(0);
}


/* Menu visible seulement quand aria-hidden="false" */
.mobile-menu[aria-hidden="false"] {
  display: block;
 
}


.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu li {
  border-bottom: 1px solid #ddd;
}

.mobile-menu a {
  display: block;
  padding: 1rem 2rem;
  color: var(--color-black);
  text-decoration: none;
}

@media (prefers-color-scheme: dark) {
  .mobile-menu {
    background-color: var(--color-black);
  }
  .mobile-menu a {
    color: var(--color-white);
  }
}



/* =========================
   RESPONSIVE MOBILE
   ========================= */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  /* Masquer les liens desktop */
  .nav-links {
    display: none;
  }
}

/* Masquer le menu mobile en desktop */
@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
}



/* ==========================================================
   07. COMPONENTS UI
   ========================================================== */

.btn {
  padding: 0.75em 1.5em;
  border-radius: 2rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: transform var(--transition-base), background-color var(--transition-base);
}

.btn-primary { background: var(--color-primary); color: var(--color-white); }
.btn-secondary { background: var(--color-secondary); }
.btn:hover { transform: translateY(-2px); }

.card { background: var(--color-white); padding: var(--space-3); border-radius: 1rem; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }

/* ==========================================================
   08. FORMS
   ========================================================== */

.form-group { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: var(--space-2); }
label { font-size: 0.875rem; }
input, textarea, select {
  padding: 0.75em;
  border-radius: 0.5rem;
  border: 1px solid var(--color-muted);
  font-family: inherit;
}

input:focus { border-color: var(--color-primary); outline: none; }

.form-error { color: var(--color-error); font-size: 0.75rem; }

/* ==========================================================
   09. DARK MODE (AUTO)
   ========================================================== */

@media (prefers-color-scheme: dark) {
  body { background: var(--color-black); color: var(--color-white); }
  .card { background: #111; }
  .header {
    background-color: var(--color-black);
  }

  .nav-logo__img--theme {
    filter: brightness(1);
  }
}

/* ==========================================================
   10. ÉTATS & HELPERS
   ========================================================== */

.is-hidden { display: none !important; }
.is-active { font-weight: bold; }
.is-loading { opacity: 0.6; pointer-events: none; }

/* ==========================================================
   11. STRUCTURE SCSS (INDICATIVE)
   ========================================================== */
/*
scss/
 ├─ _variables.scss
 ├─ _reset.scss
 ├─ _typography.scss
 ├─ _layout.scss
 ├─ _components.scss
 ├─ _forms.scss
 ├─ _utilities.scss
 └─ main.scss
*/

/* ==========================================================
   12. HTML STARTER (EXEMPLE D'USAGE)
   ========================================================== */
/*
<header class="header">
  <nav class="nav">
    <a class="nav-link">Home</a>
    <a class="nav-link">About</a>
  </nav>
</header>

<section class="section container">
  <h1>Landing Page</h1>
  <p class="subtitle">Design system ready</p>
  <button class="btn btn-primary">Call to action</button>
</section>
*/

/* ==========================================================
   13. HERO – FULL WIDTH / 70VH
   Usage:
   <section class="hero">
     <div class="hero__content container">...</div>
   </section>
   ========================================================== */

.hero {
  width: 100%;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top:60px;
  background: url('../img/hero-bg.jpg');
  background-size:cover;
  background-position: center center; 
  background-repeat: no-repeat;
}

.hero-wip {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top:60px;
  background: url('../img/ostn-communication-digital-wip.jpg');
  background-size:contain;
  background-position: center center; 
  background-repeat: no-repeat;
}

.hero__content {
  text-align: center;
}

/* ==========================================================
   14. TEXTE / IMAGE EN VIS-À-VIS (GAUCHE / DROITE)
   Usage:
   <section class="layout-split layout-split--reverse">...</section>
   ========================================================== */

.layout-split {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.layout-split__media,
.layout-split__content {
  flex: 1;
}

@media (min-width: 768px) {
  .layout-split { flex-direction: row; align-items: center; }
  .layout-split--reverse { flex-direction: row-reverse; }
}

/* ==========================================================
   15. SECTION FULL SCREEN GRAPHIQUE
   Usage:
   <section class="section-graphic">...</section>
   ========================================================== */

.section-graphic {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.section-graphic__title {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 15vw, 12rem);
  line-height: 0.9;
}

/* ==========================================================
   16. SECTION STICKY SCROLL (COLONNES + MEDIA FIXE)
   ========================================================== */

.sticky-section {
  display: flex;
  min-height: 100vh;
}

.sticky-section__steps {
  width: 50vw;
  display: flex;
  flex-direction: column;
}

.sticky-step {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--space-4);
}

.sticky-section__media {
  width: 50vw;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sticky-media {
  position: relative;
  width: 100%;
  height: 100%;
}

.sticky-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sticky-media__content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  background: rgba(0,0,0,0.3);
}

/* ==========================================================
   17. CARDS SCROLL HORIZONTAL (TOUCH)
   ========================================================== */

.cards-scroll-section {
  padding-block: var(--space-4);
}

.cards-scroll__header {
  max-width: 40rem;
  margin-bottom: var(--space-3);
}

.cards-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-left: 30px;
  padding-right: 30px;
  cursor: grab;
  scroll-behavior: auto;
  /* Cacher scrollbar — Chrome, Edge, Safari */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}
.cards-scroll::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}
.cards-scroll.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.card-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 280px; /* largeur fixe pour toutes les cartes */
}

.card {
  width: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-caption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted);
    text-align: left;
    width: 100%;
    padding-right:24px;
}

.card-caption a {
  color: var(--color-primary);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.card-caption a:hover {
  color: var(--color-accent);
}

@media (max-width: 767px) {
  .card-wrapper {
    flex: 0 0 70%; /* cartes plus larges, une ou deux visibles sur mobile */
  }

  .cards-scroll {
    padding-left: 20px;
    padding-right: 20px;
    gap: 1rem;
  }
}
@media (hover: hover) and (pointer: fine) {
  .cards-scroll:not(.is-dragging) .card:hover {
    transform: scale(1.035);
    z-index: 2;
  }
}
@media (hover: hover) and (pointer: fine) {
  .cards-scroll:not(.is-dragging) .card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
     transform: scale(1.035) rotateX(2deg) rotateY(-2deg);
  }
}
/* ==========================================================
   FIN – DESIGN SYSTEM LIGHT
   ========================================================== */